package com.beidouapp.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.beidouapp.domain.example.UserExample;
import com.beidouapp.domain.pojo.User;

public interface UserMapper extends BaseMapper<User> {

    public void resetPassword(User user);


    //----------------分割线----------------------
    int countByExample(UserExample example);

    int deleteByExample(UserExample example);

    int insert(User record);

    int insertSelective(User record);

    List<User> selectByExample(UserExample example);

    int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);

    int updateByExample(@Param("record") User record, @Param("example") UserExample example);
    
    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
    
    User getUserByLoginName(String loginName);
     
    User getUserWithPSWByLoginName(String loginName);
     
}